﻿using QFramework;
using UnityEngine;

namespace Gp.Scripts.Core
{
    public class GreatMapData : BaseSystemData
    {
        private float _timeSpeed = 1;
        private float _realTime = 0;

        protected override void OnSave(SaveFile file)
        { }

        protected override void OnLoad(SaveFile file)
        { }

        protected override void OnClear()
        {
            
        }

        public int UpdateTime(float deltaTime)
        {
            _realTime += _timeSpeed * deltaTime;
            return Mathf.FloorToInt(_realTime);
        }
        
        public int GetCurTime() => Mathf.FloorToInt(_realTime);
    }
}